/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.tbp.persitence.dao;

import br.com.tbp.exception.PersistenciaException;
import br.com.tbp.model.domain.Boc;
import java.util.List;

/**
 *
 * @author Diego Freire
 */
public interface BocDao {

    public void adicionar(Boc b) throws PersistenciaException;
    public List<Boc> pesquisar() throws PersistenciaException;
    public List<Boc> pesquisar(int limit1, int limit2) throws PersistenciaException;
    public List<Boc> pesquisar(String nome) throws PersistenciaException;
    public Boc pesquisar(long id) throws PersistenciaException;
    public void atualizar(Boc b) throws PersistenciaException;
    public void remover(Boc b) throws PersistenciaException;
    public byte[] getFoto(long id) throws PersistenciaException;

}
